{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% origin %}
{% load django_bootstrap5 %}
<h3 class="mt-5">Submitter</h3>
<p>
    If you are one of the authors, please click the button below
    with your name on it to automatically fill in the
    submitter information. Otherwise,
    please manually enter your name and email address.
</p>
{% load ietf_filters %}
{% for author in submission.authors %}
    {% if author.name %}
        <button type="button"
                class="author btn btn-primary mb-3"
                data-name="{{ author.name }}"
                data-email="{% if author.email %}{{ author.email }}{% endif %}">
            {{ author.name }}
        </button>
    {% endif %}
{% endfor %}
{% bootstrap_form_errors submitter_form %}
{% bootstrap_field submitter_form.name %}
{% bootstrap_field submitter_form.email %}
{% if user|has_role:"Secretariat" %}
    {% bootstrap_field submitter_form.approvals_received %}
{% endif %}